﻿using System;

namespace ApartmentBillsManager.Start.Common
{
    public class Roommate
    {
        private DateTime _dateOfEntrance;
        private DateTime _dateOfLeaving;

        private Roommate() {}

        public Roommate(string name, DateTime dateOfEntrance, DateTime dateOfLeaving)
        {
            Name = name;
            DateOfEntrance = dateOfEntrance;
            DateOfLeaving = dateOfLeaving;
        }

        public string Name { get; set; }

        public DateTime DateOfEntrance
        {
            get { return _dateOfEntrance.Date; }
            set { _dateOfEntrance = value; }
        }

        public DateTime DateOfLeaving
        {
            get { return _dateOfLeaving.Date; }
            set { _dateOfLeaving = value; }
        }
    }
}
